using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region SendDoc

	/// <summary>
	/// SendDoc object for NHibernate mapped table 'SendDoc'.
	/// </summary>
	public class SendDoc
	{
		#region Member Variables
		
		protected int _id;
		protected string _title;
		protected string _filePath;
		protected string _remark;
		protected string _reciveUser;
		protected int _userId;
		protected bool _isDel;
		protected bool _isPub;
		protected DateTime _addDate;

		#endregion

		#region Constructors

		public SendDoc() { }

		public SendDoc( string title, string filePath, string remark, string reciveUser, int userId, bool isDel, bool isPub, DateTime addDate )
		{
			this._title = title;
			this._filePath = filePath;
			this._remark = remark;
			this._reciveUser = reciveUser;
			this._userId = userId;
			this._isDel = isDel;
			this._isPub = isPub;
			this._addDate = addDate;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string Title
		{
			get { return _title; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for Title", value, value.ToString());
				_title = value;
			}
		}

		public  virtual string FilePath
		{
			get { return _filePath; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for FilePath", value, value.ToString());
				_filePath = value;
			}
		}

		public  virtual string Remark
		{
			get { return _remark; }
			set
			{
				if ( value != null && value.Length > 4000)
					throw new ArgumentOutOfRangeException("Invalid value for Remark", value, value.ToString());
				_remark = value;
			}
		}

		public  virtual string ReciveUser
		{
			get { return _reciveUser; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for ReciveUser", value, value.ToString());
				_reciveUser = value;
			}
		}

		public  virtual int UserId
		{
			get { return _userId; }
			set { _userId = value; }
		}

		public  virtual bool IsDel
		{
			get { return _isDel; }
			set { _isDel = value; }
		}

		public  virtual bool IsPub
		{
			get { return _isPub; }
			set { _isPub = value; }
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		

		#endregion
	}
	#endregion
}